Add async routes should return ACCEPTED status code response

This commit is contained in:
Quentin de Quelen 2019-11-20 14:03:19 +01:00
parent cc97889b37
commit ca13900699

View File

@ -115,7 +115,7 @@ pub async fn create(mut ctx: Context<Data>) -> SResult<Response> {
let response_body = IndexUpdateResponse { update_id };
Ok(tide::response::json(response_body)
.with_status(StatusCode::CREATED)
.with_status(StatusCode::ACCEPTED)
.into_response())
}