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

Returns a 200 status code even when a wrong country code is used #13

Open
HCLarsen opened this issue Mar 29, 2020 · 3 comments
Open

Returns a 200 status code even when a wrong country code is used #13

HCLarsen opened this issue Mar 29, 2020 · 3 comments

Comments

@HCLarsen
Copy link

When sending a non-existent country code, for example:

https://covidapi.info/api/v1/country/CAI

The proper response should include a 404 status code, but instead, it gives a 200.

@backtrackbaba
Copy link
Owner

Hi @HCLarsen,

Sorry for the delay in response and thank you for pointing it out. It was an oversight on my end.

Let me fix it up and push it to prod ASAP

@backtrackbaba
Copy link
Owner

@HCLarsen It's been fixed. Thank you for reporting the bug. Feel free to point out any other issues that you come across.

@HCLarsen
Copy link
Author

That's great, but an API response shouldn't include HTML, it should return JSON.

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