combined router-fn and error-fn to one function which is passed the request, changed Accept header to Allow