Skip to content
Snippets Groups Projects
Commit 8ed692d2 authored by Sonia Zorba's avatar Sonia Zorba
Browse files

Added more specific HTTP status codes

parent c9aee925
No related branches found
No related tags found
No related merge requests found
...@@ -5,6 +5,10 @@ ...@@ -5,6 +5,10 @@
*/ */
package it.inaf.oats.vospace.exception; package it.inaf.oats.vospace.exception;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.ResponseStatus;
@ResponseStatus(value = HttpStatus.UNPROCESSABLE_ENTITY)
public class NodeBusyException extends VoSpaceErrorSummarizableException { public class NodeBusyException extends VoSpaceErrorSummarizableException {
public NodeBusyException(String path) { public NodeBusyException(String path) {
......
...@@ -5,6 +5,10 @@ ...@@ -5,6 +5,10 @@
*/ */
package it.inaf.oats.vospace.exception; package it.inaf.oats.vospace.exception;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.ResponseStatus;
@ResponseStatus(value = HttpStatus.BAD_REQUEST)
public class ProtocolNotSupportedException extends VoSpaceErrorSummarizableException{ public class ProtocolNotSupportedException extends VoSpaceErrorSummarizableException{
public ProtocolNotSupportedException(String protocol) { public ProtocolNotSupportedException(String protocol) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment