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 mock http 500 response object? #85

Open
htzhang2 opened this issue Dec 20, 2019 · 1 comment
Open

how to mock http 500 response object? #85

htzhang2 opened this issue Dec 20, 2019 · 1 comment

Comments

@htzhang2
Copy link

POST.mock:

HTTP/2 500
content-type: application/json;charset=UTF-8
access-control-allow-origin: *
Access-Control-Allow-Headers: authorization, content-type

{"code":"internal_error","message":"general error"}

// Expect response: {"code":"internal_error","message":"general error"}
// Actual response: undefined

@JeanOsorio
Copy link

Have you try

HTTP/1.1 500 Internal Server Error

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