Added status code method to controller and request