#392 Document status codes from frontend
Merged 5 years ago by clime. Opened 5 years ago by frostyx.
copr/ frostyx/copr status-codes-docs  into  master

@@ -69,6 +69,20 @@ 

      {'Date': 'Wed, 25 Jul 2018 21:40:48 GMT', 'Content-Length': '42', 'Content-Type': 'application/json', 'Server': 'Werkzeug/0.12.2 Python/3.6.4'}

  

  

+ Status codes

+ ------------

+ 

+ An apropriate status codes are used for specific situations.

+ 

+ ==================  ====================

+ Status code         Reason

+ ==================  ====================

+ 200                 Successful request

+ 401                 Unauthorized request when login is required

+ 403                 Insufficient permissions, e.g. modifying a project of someone else

+ 404                 API endpoint or requested object was not found

+ 500                 General frontend error

+ ==================  ====================

  

  

  Exception hierarchy

This small PR just adds a table with status codes that we differentiate.
I think that it would be good to put it out there, so people know, what codes they can expect.
This is the last thing that I want to do for https://bugzilla.redhat.com/show_bug.cgi?id=1128362

Pull-Request has been merged by clime

5 years ago
Metadata