added api_response method to boat model and changed error response status to 400