added exception for missing config file
changed response codes to proper constants