http 204

People also ask

  • What does 204 no content mean in http?

  • 204 No Content. The HTTP 204 No Content success status response code indicates that a request has succeeded, but that the client doesn’t need to navigate away from its current page. This might be used, for example, when implementing "save and continue editing" functionality for a wiki site.

  • Is it valid to return a body along with an HTTP 204 status?

  • We’re currently working to the OData standard: According to this standard, if you perform an PUT operation against your data, you should return a 204 status code. The standard says that: When processing a PUT request servers return status 204 (No Content) to indicate success, no response body is needed.

  • What to do with a 204 status code?

  • For example, if a 204 status code is received in response to a PUT request and the response contains an ETag header field, then the PUT was successful and the ETag field-value contains the entity-tag for the new representation of that target resource.

  • What happens when a 204 response is sent?

  • The server might want to return updated meta-information in the form of entity-headers, which, if present, SHOULD be applied to the current document’s active view if any. The 204 response MUST NOT include a message-body and thus is always terminated by the first empty line after the header fields.

    http 204


    您的电子邮箱地址不会被公开。 必填项已用*标注