diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2019-01-09 23:51:44 -0800 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2019-01-09 23:51:44 -0800 |
commit | a192b0b84e46179a8f28218dfcbb5eb4e28dbf9d (patch) | |
tree | f5ea70e1863fbc15a629382b4c189d914c8a555a /rust/fatcat-api-spec/src/lib.rs | |
parent | 7632129c594b9edbae8ee9ba5da6ae35d1af2429 (diff) | |
download | fatcat-a192b0b84e46179a8f28218dfcbb5eb4e28dbf9d.tar.gz fatcat-a192b0b84e46179a8f28218dfcbb5eb4e28dbf9d.zip |
add a couple additional response types, for consistency
Diffstat (limited to 'rust/fatcat-api-spec/src/lib.rs')
-rw-r--r-- | rust/fatcat-api-spec/src/lib.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/rust/fatcat-api-spec/src/lib.rs b/rust/fatcat-api-spec/src/lib.rs index cd281a3d..3f1afa67 100644 --- a/rust/fatcat-api-spec/src/lib.rs +++ b/rust/fatcat-api-spec/src/lib.rs @@ -448,6 +448,8 @@ pub enum CreateEditgroupResponse { NotAuthorized { body: models::ErrorResponse, www_authenticate: String }, /// Forbidden Forbidden(models::ErrorResponse), + /// Not Found + NotFound(models::ErrorResponse), /// Generic Error GenericError(models::ErrorResponse), } @@ -456,6 +458,8 @@ pub enum CreateEditgroupResponse { pub enum GetChangelogResponse { /// Success Success(Vec<models::ChangelogEntry>), + /// Bad Request + BadRequest(models::ErrorResponse), /// Generic Error GenericError(models::ErrorResponse), } @@ -464,6 +468,8 @@ pub enum GetChangelogResponse { pub enum GetChangelogEntryResponse { /// Found Changelog Entry FoundChangelogEntry(models::ChangelogEntry), + /// Bad Request + BadRequest(models::ErrorResponse), /// Not Found NotFound(models::ErrorResponse), /// Generic Error |