File tree Expand file tree Collapse file tree 2 files changed +20
-0
lines changed
Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -139,6 +139,18 @@ conflict :: Status
139139_conflict :: SProxy "conflict"
140140```
141141
142+ #### ` unprocessableEntity `
143+
144+ ``` purescript
145+ unprocessableEntity :: Status
146+ ```
147+
148+ #### ` _unprocessableEntity `
149+
150+ ``` purescript
151+ _unprocessableEntity :: SProxy "unprocessableEntity"
152+ ```
153+
142154#### ` maintenanceInProgress `
143155
144156``` purescript
@@ -169,6 +181,7 @@ ResponseStatus "unauthorized"
169181ResponseStatus "forbidden"
170182ResponseStatus "notFound"
171183ResponseStatus "conflict"
184+ ResponseStatus "unprocessableEntity"
172185(Fail (Beside (Text "Unsupported response status: ") (Text status))) => ResponseStatus status
173186```
174187
Original file line number Diff line number Diff line change @@ -68,6 +68,11 @@ conflict = status 409 "Conflict"
6868
6969_conflict = SProxy :: SProxy " conflict"
7070
71+ unprocessableEntity :: Status
72+ unprocessableEntity = status 422 " Unprocessable Entity"
73+
74+ _unprocessableEntity = SProxy :: SProxy " unprocessableEntity"
75+
7176maintenanceInProgress :: Status
7277maintenanceInProgress = status 520 " Maintenance In Progress"
7378
@@ -94,6 +99,8 @@ else instance responseStatusNotFound :: ResponseStatus "notFound" where
9499 toStatus _ = notFound
95100else instance responseStatusConflict :: ResponseStatus " conflict" where
96101 toStatus _ = conflict
102+ else instance responseStatusUnprocessableEntity :: ResponseStatus " unprocessableEntity" where
103+ toStatus _ = unprocessableEntity
97104else instance responseStatusFail ::
98105 Fail (Beside (Text " Unsupported response status: " ) (Text status )) =>
99106 ResponseStatus status where
You can’t perform that action at this time.
0 commit comments