Add missing ErrorResponse message function
ErrorResponse exposed a method to obtain the status code, but not
the message. This change adds a method to publicly expose the message.
@@ -45,6 +45,10 @@ impl ErrorResponse {
pub fn status_code(&self) -> u16 {
self.status_code
}
+
+ pub fn message(&self) -> &str {
+ &self.message
+ }
}
impl error::Error for ErrorResponse {
