#399 Added specific error codes to beacon/query.