FlowFuse / FlowFuse/flowfuse

V1 API appears to return 200 for pages that should 404

Open
#1,882 0 comments 0 reactions 0 assignees View on GitHub
area:api size:M
Dominant language
JavaScript
Stars
400
Forks
89
Avg merge
1d 20h
Merged PRs (30d)
149

Description

### Current Behavior

The FlowForge V1 api appears to always return 200 with an empty response, even for an endpoint that does not exist

![Screenshot 2023-03-24 at 19 05 44](https://user-images.githubusercontent.com/507155/227491865-ddba7029-a1ee-4b4c-8424-6b15860b81d3.png)

### Expected Behavior

Should throw a 404

### Steps To Reproduce

Make a post request to any non-existant path

### Environment

_No response_

Contributor guide

Open the contributing guide

Research direction

Start by reproducing a POST request to a nonexistent V1 API path and inspect the V1 API routing or entry point responsible for the response. Done means nonexistent paths return HTTP 404 instead of HTTP 200 with an empty response.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
api, backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.