(&self, status: u16, message: String)
| 295 | } |
| 296 | |
| 297 | fn status_error(&self, status: u16, message: String) -> RemoteError { |
| 298 | match status { |
| 299 | 401 => RemoteError::unauthorized(message), |
| 300 | 403 => RemoteError::forbidden(message), |
| 301 | 404 => RemoteError::not_found(message), |
| 302 | 409 => RemoteError::conflict(message), |
| 303 | _ => RemoteError::server_error(status, message), |
| 304 | } |
| 305 | } |
| 306 | |
| 307 | // ----------------------------------------------------------------------- |
| 308 | // Workspace operations |
no test coverage detected