has middleware only display user defined exceptions and allows raising of custom status code