did a type check on next in default error handelers

Was running into a problem when hitting 405 or 500 on routes with tokens as tokens and values are passed in thus the next argument was actually an object....