Commit 8ed692d2 authored by Sonia Zorba's avatar Sonia Zorba
Browse files

Added more specific HTTP status codes

parent c9aee925
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -5,6 +5,10 @@
 */
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 NodeBusyException(String path) {
+4 −0
Original line number Diff line number Diff line
@@ -5,6 +5,10 @@
 */
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 ProtocolNotSupportedException(String protocol) {