http-status-code-200 Questions

2

We are designing a public API, and trying to figure out what is the best practice for GET with following cases: Path param: /orders/{orderId} Found: 200 with a response body. Not Found: 404. Query...

8

Solved

I'm wondering if it is correct to return HTTP 200 OK when an error occurred on the server side (the error details would be contained inside the response body). Example: We're sending HTTP GET So...
Exegete asked 13/1, 2015 at 11:53

5

I have a website with static assets that don't change (js, images, etc). Each of these assets has the cache-control header set with the following property: cache-control: public, max-age=31536000, ...
Empyrean asked 13/10, 2020 at 21:46

2

Solved

I am looking at my ajax request in network tab in chrome and I noticed every ajax request I do happens twice. First one is a 204 and then followed up with 200. My ajax call is only being hit once ...
Both asked 16/5, 2019 at 17:12

2

This is not a cross site request problem as most googled answers to my questions consists of. I'm getting xhr.status 0 och xhr.statusText "error" when trying to make an ajax request with jquery f...
Psf asked 12/1, 2012 at 9:0
1

© 2022 - 2024 — McMap. All rights reserved.