http-status-code-204 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...
Parishioner asked 4/3, 2016 at 21:43
3
Solved
On Android, I initially implemented a Retrofit interface like this:
@DELETE(USER_API_BASE_URL + "/{id}")
public void deleteUser(@Path("id") String id, Callback<User> callback);
The server ...
Deepsea asked 14/1, 2015 at 10:5
3
For my sites I typically have two server{} blocks: one serves the site, and the other serves static content for that site from a different domain. Because the favicon.ico file is always asked for f...
Dispersant asked 21/8, 2014 at 1:41
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
Solved
Background:
My PHP code handles typical HTTP HEAD requests by sending either an HTTP status 404 response or a 204 response. This seems correct to me, since RFC7231 specifies HTTP status 204 as:
6....
Inculpate asked 15/8, 2016 at 18:33
1
Everything actually works, but I can't get rid of this error in the firefox console:
no element found
I am sending an HTTP request to my api:
$http({
url: API_LOCATION + 'expenses/' + obj.ex...
Antisocial asked 14/11, 2015 at 14:17
2
I'm using the latest Volley library and I'm having issues when my api is returning a 204 with no body in the response. It seems that the following code in BasicNetwork.java isn't working as expecte...
Kbp asked 10/12, 2014 at 3:21
0
I'm very confused by chrome, it marks a "204 No Content" response red in the request list but at the same time has a green point for the "Status Code". I'm sure 204 isn't an error so what happens h...
Barbellate asked 28/4, 2014 at 11:31
1
© 2022 - 2024 — McMap. All rights reserved.