Improved type specs and added 500 error.