Fix typo in new error code

This commit is contained in:
Héctor Hurtado
2019-08-14 21:06:33 +02:00
parent 2d53a66c3e
commit fc5e510f89
+7 -7
View File
@@ -239,9 +239,9 @@ Accepts JSON data that defines a new route to be appended to the current routes.
``` ```
* **Error Responses**: * **Error Responses**:
* **Code**: `400 Malformed JSON` * **Code**: `400 Malformed JSON`
* **Code**: `412 Invalid Data Type` * **Code**: `422 Invalid Data Type`
* **Code**: `412 Invalid Route Spec` * **Code**: `422 Invalid Route Spec`
* **Code**: `412 Missing Mandatory Field`<br /> * **Code**: `422 Missing Mandatory Field`<br />
**Header**: `Content-Type: application/json`<br /> **Header**: `Content-Type: application/json`<br />
**Content**:<br /> **Content**:<br />
```json ```json
@@ -303,9 +303,9 @@ Accepts JSON data that defines a new route to be appended to the current routes.
``` ```
* **Error Responses**: * **Error Responses**:
* **Code**: `400 Malformed JSON` * **Code**: `400 Malformed JSON`
* **Code**: `412 Invalid Data Type` * **Code**: `422 Invalid Data Type`
* **Code**: `412 Invalid Route Spec` * **Code**: `422 Invalid Route Spec`
* **Code**: `412 Missing Mandatory Field`<br /> * **Code**: `422 Missing Mandatory Field`<br />
**Header**: `Content-Type: application/json`<br /> **Header**: `Content-Type: application/json`<br />
**Content**:<br /> **Content**:<br />
```json ```json
@@ -316,7 +316,7 @@ Accepts JSON data that defines a new route to be appended to the current routes.
] ]
} }
``` ```
* **Code**: `412 Invalid Index Type` * **Code**: `422 Invalid Index Type`
* **Sample Call**:<br /> * **Sample Call**:<br />
```sh ```sh
$ curl -X PUT --data-binary @- $KAPOW_URL/routes <<EOF` $ curl -X PUT --data-binary @- $KAPOW_URL/routes <<EOF`