mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-13 17:05:43 +01:00
13 lines
358 B
Java
13 lines
358 B
Java
|
|
package sonia.scm.api.rest;
|
||
|
|
|
||
|
|
import javax.ws.rs.NotAllowedException;
|
||
|
|
import javax.ws.rs.core.Response;
|
||
|
|
import javax.ws.rs.ext.Provider;
|
||
|
|
|
||
|
|
@Provider
|
||
|
|
public class NotAllowedExceptionMapper extends StatusExceptionMapper<NotAllowedException> {
|
||
|
|
public NotAllowedExceptionMapper() {
|
||
|
|
super(NotAllowedException.class, Response.Status.METHOD_NOT_ALLOWED);
|
||
|
|
}
|
||
|
|
}
|