Skip to content

Adjust 4xx error codes #19

Open
Open
@PropGit

Description

@PropGit

Adjust some 4xx error codes that relate to internal loader handling for Propeller discovery and communication errors so that the external PropLoader can apply special processing to those cases. This relates to PropLoader Issue #28.

Currently, many Propeller loading errors simply use the code 400 and the PropLoader treats them all the same.

Specifically, some more general errors can keep the 400 coded response, but others, like "Propeller not found,", "Rx Handshake timeout," "Invalid Rx handshake," "Version response timeout," and "Invalid version response," should have unique codes, like 401, 402, 403, etc.

(some of these error messages are made up during this writing, but need to be errors if they don't already exist).

Activity

PropGit

PropGit commented on Mar 22, 2018

@PropGit
Author

Resolved by returning an error text message with every 400 result. PropLoader now uses those text messages to do something sensible.

Needs verification.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

    Development

    No branches or pull requests

      Participants

      @dbetz@PropGit

      Issue actions

        Adjust 4xx error codes · Issue #19 · parallaxinc/Parallax-ESP