Let's say we have the following yaml configuration file:
foo:
apis:
-
name: Happy Api
path: /happyApi.json?v=bar
// Spring RestController: how to deal with exception and http status | |
@ResponseStatus(HttpStatus.NOT_FOUND) | |
class UserNotFoundException extends RuntimeException { | |
public UserNotFoundException(String userId) { | |
super("could not find user '" + userId + "'."); | |
} | |
} |