"tooMany" error message should give response status 400, not 413#100
Open
fflorent wants to merge 1 commit intoscimmyjs:mainfrom
Open
"tooMany" error message should give response status 400, not 413#100fflorent wants to merge 1 commit intoscimmyjs:mainfrom
fflorent wants to merge 1 commit intoscimmyjs:mainfrom
Conversation
The RFC 7644 states this: If a SCIM service provider determines that too many results would be returned (e.g., because a client queried a resource type endpoint or the server base URI), the server SHALL reject the request by returning an HTTP response with HTTP status code 400 (Bad Request) and JSON attribute "scimType" set to "tooMany" (see Table 9). Also 413 (Content Too Large) should be returned when the request has a too large payload, but does not relate to the response. Quoting RFC 9110 (<https://datatracker.ietf.org/doc/html/rfc9110#name-413-content-too-large>): The 413 (Content Too Large) status code indicates that the server is refusing to process a request because the request content is larger than the server is willing or able to process.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The RFC 7644 states this:
If a SCIM service provider determines that too many results would be
returned (e.g., because a client queried a resource type endpoint or
the server base URI), the server SHALL reject the request by
returning an HTTP response with HTTP status code 400 (Bad Request)
and JSON attribute "scimType" set to "tooMany" (see Table 9).
Also 413 (Content Too Large) should be returned when the request has a too large payload, but does not relate to the response. Quoting RFC 9110 (https://datatracker.ietf.org/doc/html/rfc9110#name-413-content-too-large):
The 413 (Content Too Large) status code indicates that the server is
refusing to process a request because the request content is larger
than the server is willing or able to process.