Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix up http response codes to match spec
  • Loading branch information
cbeer committed May 9, 2013
1 parent 25751d4 commit 9f132e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fcrepo-http-api/src/main/java/org/fcrepo/api/FedoraNodes.java
Expand Up @@ -302,9 +302,9 @@ public Response updateSparql(

session.save();

return Response.ok().build();
return Response.status(HttpStatus.SC_NO_CONTENT).build();
} else {
return Response.status(HttpStatus.SC_CONFLICT).entity(path + " is an existing resource").build();
return Response.status(HttpStatus.SC_BAD_REQUEST).entity("SPARQL-UPDATE requests must have content ").build();
}
} else {
return Response.status(HttpStatus.SC_NOT_FOUND).entity(path + " must be an existing resource").build();
Expand Down

0 comments on commit 9f132e0

Please sign in to comment.