(&self, status: u16, message: String)
| 263 | } |
| 264 | |
| 265 | fn status_error(&self, status: u16, message: String) -> RemoteError { |
| 266 | match status { |
| 267 | 401 => RemoteError::unauthorized(message), |
| 268 | 403 => RemoteError::forbidden(message), |
| 269 | 404 => RemoteError::not_found(message), |
| 270 | 409 => RemoteError::conflict(message), |
| 271 | _ => RemoteError::server_error(status, message), |
| 272 | } |
| 273 | } |
| 274 | |
| 275 | // ----------------------------------------------------------------------- |
| 276 | // Workspace operations |
no test coverage detected