Fixed some bugs. Added correct HTTP codes to hs not found answers.