Skip to content

feat: add missing HTTP status codes to httpresp()#56

Merged
mgrossmann merged 1 commit intomainfrom
issue-28-add-missing-status-codes
Apr 11, 2026
Merged

feat: add missing HTTP status codes to httpresp()#56
mgrossmann merged 1 commit intomainfrom
issue-28-add-missing-status-codes

Conversation

@mgrossmann
Copy link
Copy Markdown
Contributor

Summary

  • Add 405 Method Not Allowed, 409 Conflict, 414 URI Too Long, 507 Insufficient Storage to httpresp()
  • Previously these codes fell through to default → 500, losing semantic precision

Test plan

  • Build on MVS (make build && make link)
  • Verify mvsMF USS API returns 409 for duplicate file/directory creation
  • Verify 405 is returned for unsupported methods on a CGI endpoint

Fixes #28

Add 405 Method Not Allowed, 409 Conflict, 414 URI Too Long, and
507 Insufficient Storage to the response status code switch.

Previously these codes fell through to the default case which
silently replaced them with 500 Internal Server Error.

Fixes #28
@mgrossmann mgrossmann merged commit 226498b into main Apr 11, 2026
1 check failed
@mgrossmann mgrossmann deleted the issue-28-add-missing-status-codes branch April 11, 2026 12:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: add missing HTTP status codes to httpresp()

1 participant