Invalid requests now using the proper http response code which closes #4.