Updated response for invalid_request
Replaced `post` `delete` with `commit`