CC-5840: Add Media -> Endless retries if there is a validation error
Fixed by not adding message to retry queue if request returns a validation specific error code (422)
This commit is contained in:
parent
c291439483
commit
0040965222
2 changed files with 8 additions and 4 deletions
|
@ -369,7 +369,7 @@ class Rest_MediaController extends Zend_Rest_Controller
|
|||
private function invalidDataResponse()
|
||||
{
|
||||
$resp = $this->getResponse();
|
||||
$resp->setHttpResponseCode(400);
|
||||
$resp->setHttpResponseCode(422);
|
||||
$resp->appendBody("ERROR: Invalid data");
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue