umccr/htsget-rs

Error response is missing htsget object

Closed this issue · 1 comments

Version: 75aed47

Error responses are missing the htsget container for the error object (see Htsget retrieval API spec v1.3.0 § Errors).

Actual

GET /reads/dne HTTP/1.1

{
    "error": "InvalidInput",
    "message": "Wrong key derived from ID: dne.bam"
}

Expected

{
    "htsget": {
        "error": "InvalidInput",
        "message": "Wrong key derived from ID: dne.bam"
    }
}

Thanks for reporting @zaeleus, please do give it another spin ;)