Commit a4c6348e authored by Majeed's avatar Majeed
Browse files

return HTTP 409 conflict for CDAStatus.Rejected

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