Skip to content

Add status code helpers and make ProblemDetails status non-nullable#59

Merged
tiksn merged 1 commit into
mainfrom
add-status-code-helpers
May 20, 2026
Merged

Add status code helpers and make ProblemDetails status non-nullable#59
tiksn merged 1 commit into
mainfrom
add-status-code-helpers

Conversation

@tiksn
Copy link
Copy Markdown
Contributor

@tiksn tiksn commented May 20, 2026

Summary

  • Add focused HTTP status helpers for 4xx and 5xx detection.
  • Make ProblemDetailsModel.Status a non-nullable int.
  • Add tests for status-code boundaries, ProblemDetailsModel helpers, and JSON serialization/deserialization.

Testing

  • Added unit coverage for isStatusCodeClientError and isStatusCodeServerError at range boundaries.
  • Added unit coverage for isClientProblem and isServerProblem using ProblemDetailsModel instances.
  • Updated serializer tests for non-nullable Status and verified missing status deserializes to the default 0.
  • dotnet test passed locally.

@tiksn tiksn self-assigned this May 20, 2026
@tiksn tiksn added the enhancement New feature or request label May 20, 2026
@tiksn tiksn merged commit 398d6cb into main May 20, 2026
3 of 4 checks passed
@tiksn tiksn deleted the add-status-code-helpers branch May 20, 2026 17:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant