#399 Initial work on main route.
#399 Added specific error codes to beacon/query.
#399 Fixed broken test.
Merge pull request #416 from joola/feature/#399

#399 Specific HTTP error codes