From fc5e510f894ad486cb95a8735ec878ea0d9baad8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9ctor=20Hurtado?= Date: Wed, 14 Aug 2019 21:06:33 +0200 Subject: [PATCH] Fix typo in new error code --- spec/README.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/spec/README.md b/spec/README.md index 092ab67..6fc69ec 100644 --- a/spec/README.md +++ b/spec/README.md @@ -239,9 +239,9 @@ Accepts JSON data that defines a new route to be appended to the current routes. ``` * **Error Responses**: * **Code**: `400 Malformed JSON` - * **Code**: `412 Invalid Data Type` - * **Code**: `412 Invalid Route Spec` - * **Code**: `412 Missing Mandatory Field`
+ * **Code**: `422 Invalid Data Type` + * **Code**: `422 Invalid Route Spec` + * **Code**: `422 Missing Mandatory Field`
**Header**: `Content-Type: application/json`
**Content**:
```json @@ -303,9 +303,9 @@ Accepts JSON data that defines a new route to be appended to the current routes. ``` * **Error Responses**: * **Code**: `400 Malformed JSON` - * **Code**: `412 Invalid Data Type` - * **Code**: `412 Invalid Route Spec` - * **Code**: `412 Missing Mandatory Field`
+ * **Code**: `422 Invalid Data Type` + * **Code**: `422 Invalid Route Spec` + * **Code**: `422 Missing Mandatory Field`
**Header**: `Content-Type: application/json`
**Content**:
```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**:
```sh $ curl -X PUT --data-binary @- $KAPOW_URL/routes <