Correction to make create api call return response on 201 code