handling custom status codes for exceptions