Added status code in exception throws