thrivekit 2.0.16 → 2.0.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/ralph/api.sh +6 -0
package/package.json
CHANGED
package/ralph/api.sh
CHANGED
|
@@ -78,6 +78,12 @@ run_api_validation() {
|
|
|
78
78
|
elif [[ "$response_code" == "000" ]]; then
|
|
79
79
|
print_error "connection failed"
|
|
80
80
|
failed=1
|
|
81
|
+
elif [[ "$response_code" == "422" || "$response_code" == "400" ]]; then
|
|
82
|
+
# 422/400 = endpoint exists but needs params - don't fail verification
|
|
83
|
+
print_warning "$response_code (needs params)"
|
|
84
|
+
elif [[ "$response_code" == "401" || "$response_code" == "403" ]]; then
|
|
85
|
+
# Auth required - endpoint exists
|
|
86
|
+
print_warning "$response_code (auth required)"
|
|
81
87
|
else
|
|
82
88
|
print_error "$response_code"
|
|
83
89
|
failed=1
|