Adding RESTful respose codes to device registration endpoint