Changeset 4209 for DASISH/t5.6/backend/annotator-backend/trunk/annotator-backend/src/main/java/eu/dasish/annotation/backend/rest/AnnotationResource.java
- Timestamp:
- 12/20/13 15:59:51 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
DASISH/t5.6/backend/annotator-backend/trunk/annotator-backend/src/main/java/eu/dasish/annotation/backend/rest/AnnotationResource.java
r4207 r4209 124 124 return rootElement; 125 125 } else { 126 httpServletResponse.sendError(HttpServletResponse.SC_FORBIDDEN );126 httpServletResponse.sendError(HttpServletResponse.SC_FORBIDDEN, "The logged-in user cannot read the annotation."); 127 127 return null; 128 128 } … … 145 145 return new ObjectFactory().createTargetList(TargetList); 146 146 } else { 147 httpServletResponse.sendError(HttpServletResponse.SC_ UNAUTHORIZED);147 httpServletResponse.sendError(HttpServletResponse.SC_FORBIDDEN, "The logged-in user cannot read the annotation."); 148 148 return null; 149 149 } … … 188 188 return new ObjectFactory().createPermissionList(permissionList); 189 189 } else { 190 httpServletResponse.sendError(HttpServletResponse.SC_ UNAUTHORIZED);190 httpServletResponse.sendError(HttpServletResponse.SC_FORBIDDEN, "The logged-in user cannot read the annotation."); 191 191 return null; 192 192 } … … 209 209 return result + " annotation(s) deleted."; 210 210 } else { 211 httpServletResponse.sendError(HttpServletResponse.SC_ UNAUTHORIZED);211 httpServletResponse.sendError(HttpServletResponse.SC_FORBIDDEN, "The logged-in user cannot delete the annotation. Only the owner can delete the annotation."); 212 212 return null; 213 213 }
Note: See TracChangeset
for help on using the changeset viewer.