We have to create an integration response that maps the default response to 201 method response. Follow these steps to fix that:
1. Create a method response with status code 201. Delete the method response with status code 200 if that is not required.
2. Delete the default integration response (that maps default HTTP status to 200 method response status)
3. Create an integration response that maps default HTTP status to 201 method response. Setup header mappings and body template mappings if required.
////// my POST methods should return 201 if success or 4xx if not so i don’t need the 200 default
i should modify my 201 as default return code