Better handling for status codes in the view layer