Skip to content

Commit e66cf5f

Browse files
author
Antoine LAURENT
committed
agency: Vehicle Update response code should be 200
According to the RFC : https://tools.ietf.org/html/rfc7231#section-6.3.1 the HTTP response for an update (that does not create any object) can either be 200 (OK) or 202 (ACCEPTED) The later "indicates that the request has been accepted for processing, but the processing has not been completed." Since updating the vehicle_id should be quite fast, we should use a 200 response code.
1 parent 3e246c5 commit e66cf5f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

agency/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ Body Params:
139139
| ------------ | ------- | ----------------- | -------------------------------------------------------------------- |
140140
| `vehicle_id` | String | Required | Vehicle Identification Number (vehicle_id) visible on vehicle |
141141

142-
201 Success Response:
142+
200 Success Response:
143143

144144
_No content returned on success._
145145

0 commit comments

Comments
 (0)