Commit a4c6348e authored by Majeed's avatar Majeed

return HTTP 409 conflict for CDAStatus.Rejected

parent daa17bd7
......@@ -169,6 +169,8 @@ public class Binary implements ExternalInterface{
// Location header not allowed for status 200
importSuccessful = true;
}else if( stat.getStatus() == Status.Rejected ) {
response = Response.status(409); // HTTP conflict
throw new UnsupportedOperationException("Unexpected CDA status "+stat.getStatus());
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment