Set status codes in exceptional controllers