From 0a585395ec985d38c626c3b88b4cec1a69e9454f Mon Sep 17 00:00:00 2001 From: Petr Kadlec Date: Tue, 17 Dec 2019 20:15:57 +0100 Subject: [PATCH] Fix the description of HTTP 201 Created (#1853) The 201 HTTP status is most typically the result of a POST request. Apparently, this came verbatim from MDN where it was fixed in https://wiki.developer.mozilla.org/en-US/docs/Web/HTTP/Status$compare?to=1348890&from=1340759 --- packages/insomnia-app/app/common/constants.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/insomnia-app/app/common/constants.js b/packages/insomnia-app/app/common/constants.js index eabfeac7d7..c9f83a3e50 100644 --- a/packages/insomnia-app/app/common/constants.js +++ b/packages/insomnia-app/app/common/constants.js @@ -241,7 +241,7 @@ export const RESPONSE_CODE_DESCRIPTIONS = { // 200s 200: 'The request has succeeded.', - 201: 'The request has succeeded and a new resource has been created as a result of it. This is typically the response sent after a PUT request.', + 201: 'The request has succeeded and a new resource has been created as a result. This is typically the response sent after POST requests, or some PUT requests.', 202: 'The request has been received but not yet acted upon. It is non-committal, meaning that there is no way in HTTP to later send an asynchronous response indicating the outcome of processing the request. It is intended for cases where another process or server handles the request, or for batch processing.', 203: 'This response code means returned meta-information set is not exact set as available from the origin server, but collected from a local or a third party copy. Except this condition, 200 OK response should be preferred instead of this response.', 204: 'There is no content to send for this request, but the headers may be useful. The user-agent may update its cached headers for this resource with the new ones.',