-
Notifications
You must be signed in to change notification settings - Fork 654
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add status code to ErrorResponse object (#866)
This change exposes the underlying HTTP status code, so that similar classes of errors (e.g. 409 Conflict) can be handled easily. Other minor changes: * Error messages have been updated to consistently use directional quotes (‘ and ’) * Used %d format parameter for int64 values, as Sprintf can handle stringifying these valuese correctly * Added status codes for errors returned from functions like ErrInvalidBucketName * Fixed typo: EntityTooSmall was returning code EntityTooLarge * Changed error messages in tests to use %#v instead of %+v, to show the full struct state instead of just String() value
- Loading branch information
Showing
2 changed files
with
100 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.