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
Document list of error codes #15
Comments
@grayside What do you think about documenting this expected behavior of HTTP status codes in the Functions Framework contract for HTTP-triggered functions? Anything I could be missing? |
Hello Grant, I recommend documenting HTTP error codes the framework would use itself and not others, your list seems right to me. I've also seen error codes such as |
Thanks for the reply Adam. I don't know of error codes such as I've looked at the Node.js Framework source and found some interesting cases but nothing like a non-HTTP error codes or common Node error codes. |
I've double-checked, and found |
A few of us have talked about this topic in the .NET FF meeting. Greg Block chimed in. I've created a proposal for documenting the acceptable error codes in the PR above. |
The types of errors in the Function Frameworks should be described and standardized across languages.
This should include 400 and 500 errors.
400s: 400 Bad requests, 404s, 405s method not allowed
500s: Internal errors seen by the Functions Framework
The text was updated successfully, but these errors were encountered: