We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3915e00 commit 982c262Copy full SHA for 982c262
1 file changed
errors.go
@@ -84,6 +84,8 @@ func (e ErrorCode) ToHTTP() int {
84
return http.StatusServiceUnavailable
85
case Unauthenticated:
86
return http.StatusUnauthorized
87
+ case UnprocessableEntity:
88
+ return http.StatusUnprocessableEntity
89
default:
90
return http.StatusInternalServerError
91
}
@@ -303,6 +305,8 @@ const (
303
305
DataLoss ErrorCode = "data_loss"
304
306
// Similar to PermissionDenied, used when the caller is unidentified
307
Unauthenticated ErrorCode = "unauthenticated"
308
+ // Cannot consume the entity in the given format
309
+ UnprocessableEntity ErrorCode = "unprocessable_entity"
310
)
311
312
type psrpcError struct {
0 commit comments