fixed status code and fixed missing use statement