adding HTTP response code
This commit is contained in:
parent
e36ccb3cfd
commit
61f2ac4679
1 changed files with 4 additions and 0 deletions
|
|
@ -25,6 +25,7 @@ namespace fc {
|
|||
enum status_code {
|
||||
OK = 200,
|
||||
RecordCreated = 201,
|
||||
BadRequest = 400,
|
||||
NotAuthorized = 401,
|
||||
NotFound = 404,
|
||||
Found = 302,
|
||||
|
|
@ -75,3 +76,6 @@ namespace fc {
|
|||
|
||||
} } // fc::http
|
||||
|
||||
#include <fc/reflect/reflect.hpp>
|
||||
FC_REFLECT( fc::http::header, (key)(val) )
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue