We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Description: Provide common reusable constants for HTTP status-code responses.
Sample Usage Developer should be able to use common constants for HTTP status-codes when developing a HTTP service.
service / on new http:Listener(9090) { resource function 'default hello(http:Request request) returns http:Ok|http:BadRequest { error? validationResponse = validate(request); if validationResponse is error { return http:BAD_REQUEST; } // implement logic return http:OK; } }
The text was updated successfully, but these errors were encountered:
TharmiganK
Successfully merging a pull request may close this issue.
Description:
Provide common reusable constants for HTTP status-code responses.
Sample Usage
Developer should be able to use common constants for HTTP status-codes when developing a HTTP service.
The text was updated successfully, but these errors were encountered: