exceptions thrown by middleware -> 500