Custom route rejection end up in 405 Method not allowed

Is it possible to do something else than reject, pass and provide in a Directive1[Something] ?