InternalServerErrorJSON acts exactly like `InternalServerError` but instead it sends the data as JSON. Useful for APIs.
(ctx iris.Context, err error, format string, args ...interface{})
| 121 | // InternalServerErrorJSON acts exactly like `InternalServerError` but instead it sends the data as JSON. |
| 122 | // Useful for APIs. |
| 123 | func InternalServerErrorJSON(ctx iris.Context, err error, format string, args ...interface{}) { |
| 124 | LogFailure(os.Stderr, ctx, FailJSON(ctx, iris.StatusInternalServerError, err, format, args...)) |
| 125 | } |
| 126 | |
| 127 | // UnauthorizedJSON sends JSON format of StatusUnauthorized(401) HTTPError value. |
| 128 | func UnauthorizedJSON(ctx iris.Context, err error, format string, args ...interface{}) HTTPError { |
nothing calls this directly
no test coverage detected
searching dependent graphs…