Include the exceptions code in the error responses if the code is not 0.

Signed-off-by: Jason Lewis <jason.lewis1991@gmail.com>
Only resolve controllers from the container when they are being routed to. This saves needlessly resolving controllers.

Signed-off-by: Jason Lewis <jason.lewis1991@gmail.com>