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

Should return 404 when path is not supported #7

Open
sebsto opened this issue Jun 11, 2024 · 0 comments
Open

Should return 404 when path is not supported #7

sebsto opened this issue Jun 11, 2024 · 0 comments

Comments

@sebsto
Copy link
Collaborator

sebsto commented Jun 11, 2024

When deploying an application that handle /myroute/{my_Params} and invoking it with GET /, it returns an HTTP 500 instead of an HTTP 404 error.

Example

openapi.yaml :

paths:
  /stocks/{symbol}:
    get:
curl -v https://mwad60wxk9.execute-api.eu-west-3.amazonaws.com/
* Host mwad60wxk9.execute-api.eu-west-3.amazonaws.com:443 was resolved.
... (redacted for brevity) ...
> GET / HTTP/2
> Host: mwad60wxk9.execute-api.eu-west-3.amazonaws.com
> User-Agent: curl/8.6.0
> Accept: */*
> 
< HTTP/2 500 
< date: Tue, 11 Jun 2024 07:58:13 GMT
< content-type: text/plain; charset=utf-8
< content-length: 53
< apigw-requestid: ZMV_Vh-tiGYEJ7Q=
< 
* Connection #0 to host mwad60wxk9.execute-api.eu-west-3.amazonaws.com left intact
There is no OpenAPI handler registered for the path /% 
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