Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Requesting a large pagination limit should result in a TooManyResults error not BadRequest #1607

Open
jason-fox opened this issue Apr 18, 2024 · 0 comments

Comments

@jason-fox
Copy link
Member

Orion-LD 1.5

I have no entities and request with limit - /entities/?type=TemperatureSensor&limit=1001

Orion-LD Returns a 400 Bad Request error code and:

{
    "type": "https://uri.etsi.org/ngsi-ld/errors/BadRequestData",
    "title": "Invalid value for URI parameter /limit/",
    "detail": "must be an integer value <= 1000"
}

According to the 1.8.1 spec this is 403 Forbidden error of type https://uri.etsi.org/ngsi-ld/errors/TooManyResults

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

No branches or pull requests

1 participant