-
Notifications
You must be signed in to change notification settings - Fork 253
Server-side support for enhanced status codes #37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
RFC 3463 is just codes, RFC 2034 defines actual extension.
Per RFC 2034 we must include a code, but some backends may not support it, so provide a generic fallback.
Codecov Report
@@ Coverage Diff @@
## master #37 +/- ##
==========================================
- Coverage 63.42% 62.73% -0.69%
==========================================
Files 6 6
Lines 678 695 +17
==========================================
+ Hits 430 436 +6
- Misses 184 192 +8
- Partials 64 67 +3
Continue to review full report at Codecov.
|
|
As for client support, I decided to leave it for another time because we don't return status codes in client functions at all. |
data.go
Outdated
| Code int | ||
| Message string | ||
| Code int | ||
| EnhancedCode [3]int |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we have a special EnhancedCode type, so that it's easier to spot constants?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
LGTM otherwise! |
|
Thanks! |
No description provided.