default to 500 error if non is provided
Merge pull request #385 from Wikia/Safer-error-code

default to 500 error if non is provided