Fix 200 status code returned on error with PUT and PATCH methods (fix: #384)