Making a request to the GET endpoint of a queue, when specifying an accept header not text/html returns a 406 response.
POST /api/queues/%2F/myqueue/get HTTP/1.1
Content-type: application/json
host: localhost:15672
authorization: Basic Z3Vlc3Q6Z3Vlc3Q=
accept: application/json
content-length: 44
Connection: close
{"count":1,"requeue":true,"encoding":"auto"}
HTTP/1.1 406 Not Acceptable
Server: MochiWeb/1.1 WebMachine/1.10.0 (never breaks eye contact)
Date: Wed, 24 Jun 2015 02:36:57 GMT
Content-Type: application/json
Content-Length: 58
{"error":"Not Acceptable","reason":"\"Not Acceptable\"\n"}
{"management_version":"3.5.3","rates_mode":"basic","exchange_types":[{"name":"topic","description":"AMQP topic exchange, as per the AMQP specification","enabled":true},{"name":"fanout","description":"AMQP fanout exchange, as per the AMQP specification","enabled":true},{"name":"direct","description":"AMQP direct exchange, as per the AMQP specification","enabled":true},{"name":"headers","description":"AMQP headers exchange, as per the AMQP specification","enabled":true}],"rabbitmq_version":"3.5.3","cluster_name":"rabbit@Owens-MacBook-Pro","erlang_version":"17.5","erlang_full_version":"Erlang/OTP 17 [erts-6.4] [source] [64-bit] [smp:8:8] [async-threads:30] [hipe] [kernel-poll:true]","message_stats":{"publish":2,"publish_details":{"rate":0.0},"deliver_get":1,"deliver_get_details":{"rate":0.0},"get":1,"get_details":{"rate":0.0}},"queue_totals":{"messages":0,"messages_details":{"rate":0.0},"messages_ready":0,"messages_ready_details":{"rate":0.0},"messages_unacknowledged":0,"messages_unacknowledged_details":{"rate":0.0}},"object_totals":{"consumers":0,"queues":0,"exchanges":8,"connections":2,"channels":2},"statistics_db_event_queue":0,"node":"rabbit@localhost","statistics_db_node":"rabbit@localhost","listeners":[{"node":"rabbit@localhost","protocol":"amqp","ip_address":"127.0.0.1","port":5672},{"node":"rabbit@localhost","protocol":"clustering","ip_address":"::","port":25672},{"node":"rabbit@localhost","protocol":"mqtt","ip_address":"::","port":1883},{"node":"rabbit@localhost","protocol":"stomp","ip_address":"::","port":61613}],"contexts":[{"node":"rabbit@localhost","description":"RabbitMQ Management","path":"/","port":"15672"}]}