Remove lang file for error messages
Refactor API error messages into config file instead of lang file
Fix bug in invalid resource test
Add return statement to any thrown errors to improve accuracy of code coverage report
Fix undefined variable
Refactor API errors into separate class
Update some missed references to new APIError class
Flesh out error documentation and tests