mirror of
https://github.com/kataras/iris.git
synced 2026-03-07 00:45:58 +00:00
add context#StatusCodeNotSuccessful for customize even the most customized clients that are not compatible with the standards and fix the SPA if static file serve handlers are passed as its AssetHandler as reported at the chat.iris-go.com
Former-commit-id: ccd0815a09b9305bfbeaad7b46559dd86f34f20b
This commit is contained in:
@@ -20,7 +20,7 @@ func (err TransactionErrResult) Error() string {
|
||||
|
||||
// IsFailure returns true if this is an actual error
|
||||
func (err TransactionErrResult) IsFailure() bool {
|
||||
return err.StatusCode >= 400
|
||||
return StatusCodeNotSuccessful(err.StatusCode)
|
||||
}
|
||||
|
||||
// NewTransactionErrResult returns a new transaction result with the given error message,
|
||||
|
||||
Reference in New Issue
Block a user