| Line 35... |
Line 35... |
| 35 |
return this.genericError(response, HttpStatus.FORBIDDEN, ResponseStatus.FAILURE);
|
35 |
return this.genericError(response, HttpStatus.FORBIDDEN, ResponseStatus.FAILURE);
|
| 36 |
}
|
36 |
}
|
| 37 |
public ResponseEntity<?> notFound(Object response){
|
37 |
public ResponseEntity<?> notFound(Object response){
|
| 38 |
return this.genericError(response, HttpStatus.NOT_FOUND, ResponseStatus.FAILURE);
|
38 |
return this.genericError(response, HttpStatus.NOT_FOUND, ResponseStatus.FAILURE);
|
| 39 |
}
|
39 |
}
|
| - |
|
40 |
public ResponseEntity<?> internalServerError(Object response){
|
| - |
|
41 |
return this.genericError(response, HttpStatus.INTERNAL_SERVER_ERROR, ResponseStatus.FAILURE);
|
| - |
|
42 |
}
|
| 40 |
public ResponseEntity<?> badRequest(ProfitMandiBusinessException profitMandiBusinessException){
|
43 |
public ResponseEntity<?> badRequest(ProfitMandiBusinessException profitMandiBusinessException){
|
| 41 |
return this.genericError(profitMandiBusinessException, HttpStatus.BAD_REQUEST);
|
44 |
return this.genericError(profitMandiBusinessException, HttpStatus.BAD_REQUEST);
|
| 42 |
}
|
45 |
}
|
| 43 |
public ResponseEntity<?> unauthorized(ProfitMandiBusinessException profitMandiBusinessException){
|
46 |
public ResponseEntity<?> unauthorized(ProfitMandiBusinessException profitMandiBusinessException){
|
| 44 |
return this.genericError(profitMandiBusinessException, HttpStatus.UNAUTHORIZED);
|
47 |
return this.genericError(profitMandiBusinessException, HttpStatus.UNAUTHORIZED);
|