(&self, status: u16, message: String)
| 236 | } |
| 237 | |
| 238 | fn status_error(&self, status: u16, message: String) -> RemoteError { |
| 239 | match status { |
| 240 | 401 => RemoteError::unauthorized(message), |
| 241 | 403 => RemoteError::forbidden(message), |
| 242 | 404 => RemoteError::not_found(message), |
| 243 | 409 => RemoteError::conflict(message), |
| 244 | _ => RemoteError::server_error(status, message), |
| 245 | } |
| 246 | } |
| 247 | |
| 248 | // ----------------------------------------------------------------------- |
| 249 | // Workspace operations |
no test coverage detected