You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 5, 2021. It is now read-only.
Copy file name to clipboardExpand all lines: source/v1/index.html.md
+20Lines changed: 20 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -132,10 +132,30 @@ To Log in and try it out hit the "Try out" button.
132
132
}
133
133
```
134
134
135
+
> For Error Responses With Validation Errors
136
+
137
+
```json
138
+
{
139
+
"success": false,
140
+
"error": {
141
+
"type": "HttpNotFoundException",
142
+
"message": "Page Not Found",
143
+
"validation_errors": {
144
+
"attribute": "validation error for the attribute"
145
+
}
146
+
}
147
+
}
148
+
```
149
+
135
150
All JSON responses from the API is wrapped in a base object.
136
151
137
152
Be sure to include an `Accept: application/json` header, otherwise errors like `401`, `403` & `404` will either return HTML or redirect you to the login page.
138
153
154
+
<asideclass="warning">
155
+
The current version (1.4.2) returns `validation_errors` as an array of string, this behavior will change the one described on the right in the next version 1.4.3. (no release ETA)
0 commit comments