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

How to simulate HTTP response code such as 200, 440, 503, ... #7

Open
ryutb opened this issue Apr 22, 2020 · 1 comment
Open

How to simulate HTTP response code such as 200, 440, 503, ... #7

ryutb opened this issue Apr 22, 2020 · 1 comment

Comments

@ryutb
Copy link

ryutb commented Apr 22, 2020

Please help me simulate HTTP response code like json-server.

@ngduc
Copy link
Owner

ngduc commented Apr 22, 2020

will it work if we add a parameter like "errorCode=400" to the URL to simulate it like:
curl http://localhost:3003/todos?errorCode=400

@ltbaogt2

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

2 participants