-
Notifications
You must be signed in to change notification settings - Fork 66
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
[Request] Ability to dynamically change status response code #29
Comments
Created a pull request with a potential solution. #30 |
Hi @crbanman, The difference to your approach is that there is a new option in the ui to select "middleware" as response. |
Hey @smollweide, It would be nice if each service could define their own middleware code inside the same directory as the other files for that service. But that's more of a "nice to have" feature as your current solution will work for me. |
Hi @crbanman,
Thank you for your patience. |
I'm doing some basic parameter validation on one of my mocks and would like to be able to return a different status code when a parameter is missing or incorrect. Currently, the only way this can be done is to create a separate error response and select it using the UI.
The text was updated successfully, but these errors were encountered: