muchdogesec / arango_taxii_server

A lightweight TAXII API wrapper for ArangoDB.
GNU Affero General Public License v3.0
2 stars 0 forks source link

404s should be returned if endpoint does not exist #7

Closed himynamesdave closed 2 weeks ago

himynamesdave commented 2 weeks ago
curl -X 'GET' \
  'http://127.0.0.1:8000/api/taxii2/null' \
  -H 'accept: application/json' \
  -H 'Authorization: XXX'

Currently returns a 200, but the endpoint does not exist.

Should return a 404.

fqrious commented 2 weeks ago

Not a bug

This is a redirect, curl doesn't follow redirects.

You can follow redirects with -L flag or use -v to show headers